package com.shixun.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class StudentOrPasswordDto {
    @NotNull(message = "学生id不能为空")
    private Long id;
    @NotBlank(message = "电话不能为空")
    private String phone;
    @NotBlank(message = "专业不能为空")
    private String profession;
    @Size(message = "密码长度在8-16位",min = 8,max = 16)
    private String password;
}
